ihelpuoo.weboo.runtime.ActionEventHandler = function()
{
}

ihelpuoo.weboo.runtime.ActionEventHandler.prototype
=
{
	loadActionDetail: function()
	{
		var ele = ihelpuoo.event.srcElement(this);
		var rt = ihelpuoo.weboo.runtime.me();
		var m = rt.getModule(ele.getAttribute("module"));
		rt.setActiveModule(m);
		m.render();
		var a = m.getAction(ele.innerHTML);
		m.setActiveAction(a);
		a.render();
		
		var arena = document.getElementById("arena");
		ihelpuoo.dom.hideChildren(arena);
		var detailHTML = a.getDetail().render();
		if(null!=detailHTML && !ihelpuoo.dom.contains(arena,detailHTML))
		{
			arena.appendChild(detailHTML);
		}
	}
}
